package com.meatball.dji.common.util

fun String.interpolate(vararg pairs: Pair<String, String>): String {
    var result = this
    for (pair in pairs) {
        result = result.replace("{${pair.first}}", pair.second)
    }
    return result
}